<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin : 0;
            padding: 0;
        }
        div{
        width: 10px;
        height: 100px;
        padding: 10px 20px;
        border: 1px solid red;
        display: inline;
        }
        span{
            width: 100px;
            height: 100px;
            display: block;
            background-color: green;
        }
    </style>
</head>
<body>
    <div>123</div>
    <span>11</span><span>222</span>
</body>
</html>